package com.example.book.service;

import com.example.book.pojo.Book;
import com.example.book.pojo.Page;

import java.util.List;

public interface BookService {

    void addBook(Book book);
    void deleteBookById(Integer id);
    void updateBook(Book book);
    Book queryBookById(Integer id);
    List<Book> queryBook();

    Page<Book> page(int pageNo, int pageSize);

    Page<Book> pageByPrice(int pageNo, int pageSize,int max,int min);
}
